package com.example.demo3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo3.pojo.users;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface usersmapper extends BaseMapper<users> {

    List<users> selectList1(@Param("name") String name);
    int update1(String name,double yue);
    //查询余额
    double select2(@Param(value = "name") String name);
    //用户退款加钱
    int update2(@Param(value = "name") String name, String yue);

    int add(@Param("name") String name,@Param("yue") double yue);
}
